package com.ygs.secs.mapper;

import com.ygs.secs.model.Profession;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProfessionMapper {
    /**
     * delete by primary key
     *
     * @param professionid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer professionid);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Profession record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Profession record);

    /**
     * select by primary key
     *
     * @param professionid primary key
     * @return object by primary key
     */
    Profession selectByPrimaryKey(Integer professionid);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Profession record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Profession record);

    int updateBatch(List<Profession> list);

    int updateBatchSelective(List<Profession> list);

    int batchInsert(@Param("list") List<Profession> list);

    int batchDelete(@Param("array") Integer[] professions);

    List<Profession> getAllProfession();
}